package pojo.qo;

import pojo.entity.Good;

import java.util.List;

public class UserCart {
    //UserCart:{userId,CartList:[shopList:[shop1:goodList]]}
    private Long cartId;
    private Long userID;
    private Long shopId;
    private String shopName;
    private List<Good> goodList;


    public Long getUserID() {
        return userID;
    }

    public void setUserID(Long userID) {
        this.userID = userID;
    }

    @Override
    public String toString() {
        return "UserCart{" +
                "cartId=" + cartId +
                ", userID=" + userID +
                ", shopId=" + shopId +
                ", shopName='" + shopName + '\'' +
                ", goodList=" + goodList +
                '}';
    }

    public UserCart(Long cartId, Long userID, Long shopId, String shopName, List<Good> goodList) {
        this.cartId = cartId;
        this.userID = userID;
        this.shopId = shopId;
        this.shopName = shopName;
        this.goodList = goodList;
    }

    public Long getCartId() {
        return cartId;
    }

    public void setCartId(Long cartId) {
        this.cartId = cartId;
    }

    public UserCart() {
    }



    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public List<Good> getGoodList() {
        return goodList;
    }

    public void setGoodList(List<Good> goodList) {
        this.goodList = goodList;
    }
}
